;;; ~/.doom.d/config.el -*- lexical-binding: t; -*-

;; Place your private configuration here

;; doom/core/core.el 中设置了最高优先级字符集为 'unicode
;; 但这会造成中文部分字体异形, 如“测试 项目 驿站”等, 具体原因未知
;; @link http://www.gnu.org/software/emacs/manual/html_node/elisp/Character-Sets.html
;; @link https://emacs.stackexchange.com/questions/32098/set-charset-priority-unicode-should-i-do-it
;; @link https://emacs-china.org/t/doom-emacs/6967
;; 将最高优先级的charset该设为chinese-gbk
(when (fboundp 'set-charset-priority)
  (set-charset-priority 'chinese-gbk))

;; 设置字体
(defvar-local demo/font "WenQuanYi Zen Hei Mono:style=Regular")
(when (fontp (font-spec :name demo/font))
  (setq doom-font demo/font))
